-
Notifications
You must be signed in to change notification settings - Fork 54
bookmarks and links in news: replace flags with language description in French #296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I've just seen there's a little thing to adjust: when we add a link in the redaction, the text "en allemand" is only shown after a page reload. That's not blocking, but I think I'll have time today to fix it. |
Ok, I've just made changes on the CoffeeScript side, it works on my development environment, but it's first time I create a new I've tried to run |
- missing class to display flag on bookmarks during preview - missing flags in some contrib CSS - reorder langs in Redis to default to 'xx' (then 'fr', then sorted)
139a102 to
2da99e6
Compare
| def lang_and_hit(link) | ||
| detail = "(" | ||
| detail += "en #{Lang[link.lang].downcase}, " unless link.lang == 'fr' | ||
| detail += "#{pluralize link.nb_clicks, 'clic'})" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| detail += "#{pluralize link.nb_clicks, 'clic'})" | |
| detail += pluralize link.nb_clicks, 'clic' | |
| detail += ')' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Les ' plutôt que les " c'est supposé être plus sympa pour l'interpréteur ruby, notamment côté mémoire, mais bon, ça joue ptet pas beaucoup non plus.
| # encoding: UTF-8 | ||
| module LinkHelper | ||
| def lang_and_hit(link) | ||
| detail = "(" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| detail = "(" | |
| detail = '(' |
|
Avec #383 , nous allons supprimer |
|
Je ferme cette PR, parce qu'elle entre en conflit avec #383 qui supprime les fichiers |
As discussed in these two suivis:
For links in news, it adds French language description before the hit counter if Language is not French.
For bookmarks, it does the same and it removes too the useless
<ul>HTML tag and directly set content with the link and the French language description.